package com.mine.modules.vm.controller;


import com.mine.common.domain.vo.Result;
import com.mine.modules.vm.domain.dto.CommonElementListDto;
import com.mine.modules.vm.service.IVmCommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @author author
 * @since 2024-10-15
 */
@Slf4j
@Api(tags = "通用图元接口")
@RestController
@RequestMapping("/vm/common")
@RequiredArgsConstructor
public class VmCommonController {

    private final IVmCommonService commonService;

    @ApiOperation("通用图元列表查询")
    @RequestMapping(value = "/elementPageList", method = RequestMethod.GET)
    public Result<?> elementPageList(CommonElementListDto commonElementListDto) {
        return commonService.commonElementList(commonElementListDto);
    }

}
